﻿using System;
using System.Xml.Serialization;

namespace IntoStationRepair.Configs
{
    [Serializable]
    public class RepairConfig
    {
        [XmlElement] public string PlcIP { get; set; } = "192.168.31.10";
        [XmlElement] public int DbBlock { get; set; } = 10106;
        [XmlElement] public int Offset { get; set; } = 0;
        [XmlElement] public int Len { get; set; } = 68;
        [XmlElement] public int MesDb { get; set; } = 20006;
        [XmlElement] public int MesOffset { get; set; } = 0;
        [XmlElement] public int MesLen { get; set; } = 582;
        [XmlElement] public string ScanComPort { get; set; } = "COM1";
        [XmlElement] public int ScanBaudrate { get; set; } = 9600;
        [XmlElement] public string MesIP { get; set; } = "192.168.31.40";
        [XmlElement] public int MesPort { get; set; } = 62233;
    }
}
